package com.ella.service.impl;

import com.ella.entity.SysRole;
import com.ella.mapper.SysRoleMapper;
import com.ella.service.ISysRoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Set;

/**
 * <p>
 * 角色信息表 服务实现类
 * </p>
 *
 * @author 浮生若梦
 * @since 2023-05-08
 */
@Service
public class SysRoleServiceImpl extends ServiceImpl<SysRoleMapper, SysRole> implements ISysRoleService {

	@Resource
	private SysRoleMapper roleMapper;

	@Override
	public List<Long> selectRoleIdsByUserId(Long userId) {

	return roleMapper.selectRoleIdsByUserId(userId);
	}

}
